Skip to content

[pull] main from tldraw:main#488

Merged
pull[bot] merged 1 commit intocode:mainfrom
tldraw:main
Apr 9, 2026
Merged

[pull] main from tldraw:main#488
pull[bot] merged 1 commit intocode:mainfrom
tldraw:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Apr 9, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…8492)

In order to simplify our fly.io deployment and rely on zero's built-in
litestream configuration instead of maintaining our own, this PR removes
the custom `[[files]]` litestream config sections from both the
replication manager and view syncer templates.

Zero already supports `ZERO_LITESTREAM_ENDPOINT` for non-AWS S3
endpoints (like Cloudflare R2), and its default config handles the
metrics `addr` (port+2 = 4850), replica path, bucket, and auth via
`AWS_ACCESS_KEY_ID`/`AWS_SECRET_ACCESS_KEY` fly secrets. The only thing
we needed to add was the `ZERO_LITESTREAM_ENDPOINT` env var so zero
knows the R2 endpoint URL.

Also enables multinode deployment for previews so the replication
manager + view syncer templates are actually tested in preview deploys
(previously previews used single-node which doesn't have litestream at
all).

### Change type

- [x] `improvement`

### Test plan

1. Deploy preview with `dotcom-preview-please` +
`preview-flyio-zero-deploy-please` labels (now multinode)
2. Check `flyctl logs` for litestream errors (endpoint resolution, auth
failures)
3. Verify backup files appear in Cloudflare R2 bucket at the expected
path
4. Confirm changelog draining: `SELECT
pg_size_pretty(pg_total_relation_size('zero."changeLog"'));` stays small
5. Verify backup-monitor logs show successful watermark determination

### Release notes

- Remove custom litestream configuration from zero fly.io deployments in
favor of zero's built-in defaults

### Code changes

| Section | LOC change |
| ------- | ---------- |
| Apps    | +2 / -32   |
| Config/tooling | +5 / -8 |
@pull pull Bot locked and limited conversation to collaborators Apr 9, 2026
@pull pull Bot added the ⤵️ pull label Apr 9, 2026
@pull pull Bot merged commit a300e2d into code:main Apr 9, 2026
@pull pull Bot had a problem deploying to bemo-canary April 9, 2026 09:13 Failure
@pull pull Bot had a problem deploying to deploy-staging April 9, 2026 09:13 Error
@pull pull Bot had a problem deploying to deploy-production April 9, 2026 09:13 Failure
@pull pull Bot had a problem deploying to bemo-canary April 9, 2026 09:13 Failure
@pull pull Bot had a problem deploying to vsce publish April 9, 2026 09:13 Failure
@pull pull Bot had a problem deploying to deploy-staging April 9, 2026 09:13 Failure
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant